/* 设置图片的样式 */
.image {
    display: none;
    position: absolute;
    left: 545px;
    top: 80px;
    width: 700px;
    height: 350px;
    border: 5px solid #bd4242;
    border-radius: 7%;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 6% auto;
    padding: 10px;
    border: 1px solid #888;
    width: 40%;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    text-align: center;
}

.container label {
    position: relative;
    left: 125px;
    width: 50px;
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    text-align: left;
}

.container img{
    width:25px;
}
.container input{
    border: none;
    border-bottom: 1px solid black;
    outline: none;
    width: 220px;
    margin: 5px;
}

.reg_login_but{
    width: 300px;
    height: 45px;
    background: #ff6700;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: large;
}
#forget{
    display: block;
    color: #727272;
    text-decoration: underline;
    cursor: pointer;
    margin: 10px;
}
.login_title{
    position: relative;
    top: -10px;
    background:#ff6700;
    color: white;
    text-align: center;
    border-radius: 5px;
}
.login_title h4{
    position: relative;
    top: 20px;
    font-size: 23px;
    line-height: 100%;
}
.login_title button{
    position: relative;
    left: 242px;
    top: -33px;
    width: 30px;
    height: 30px;
    background-color: #ff6700;
    border: 0;
}
.login_title img{
    width: 100%;
}
.reg_container{
    margin: 20px;
    text-align: center;
}
.responfield{
    margin: 10px;
    padding: 5px;
}
.responfield label{
    display: block;
    position: relative;
    left: 105px;
    width: 60px;
}
.responfield img{
    width:25px;
}
.responfield input{
    border: none;
    border-bottom: 1px solid black;
    outline: none;
    width: 220px;
    margin: 5px;
}

#search_but {
    padding: 8px;
    background-color: #ff6700;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
#right span {
    padding: 4px 8px;
    background-color: #ff6700;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 6px;
}
@media (min-width: 768px) {
    .navbar-left {
        line-height: 42px;
    }
}
.navbar-nav>li>a {
    line-height: 30px;
}
/*遍历所有商品*/
/** {*/
/*    box-sizing: border-box;*/
/*}*/
#all {
    position: absolute;
    left: 100px;
    top: 400px;
}

.card {
    max-width: calc(100vw - 10px);
    position: relative;
    padding: 5px 5px;
    background-color: gray;
    margin-bottom: 15px;
}

#card-in {
    border-radius: 12px;
}

.grid-area {
    position: relative;
    background-color: #fff;
}

.card-thumbnail {
    padding-top: 100%;
    position: relative;
    height: 0;
}

.card-thumbnail img {
    width: 85%;
    height: 74%;
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16px;
    right: 0;
}

.grid-area_b {
    padding: 5px;
}

.grid-area_b .card-title {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 7px;
}

.grid-area_b .card-submit {
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 6px;
    color: #666;
}

.card-rating {
    padding: 5px;
    font-size: 12px;
    color: gray;
}

.card-rating.card-rating-1 i:nth-child(-n + 1) {
    color: orange;
}

.card-rating.card-rating-2 i:nth-child(-n + 2) {
    color: orange;
}

.card-rating.card-rating-3 i:nth-child(-n + 3) {
    color: orange;
}

.card-rating.card-rating-4 i:nth-child(-n + 4) {
    color: orange;
}

.card-rating.card-rating-5 i:nth-child(-n + 5) {
    color: orange;
}

.card-label {
    padding: 5px;
    font-size: 0;
}

.card-label span {
    display: inline-block;
    color: #ff5000;
    border: 1px solid #ff5000;
    font-size: 12px;
    padding: 2px 3px;
    border-radius: 3px;
}

.card-label span:not(:last-child) {
    margin-right: 5px;
}

.grid-area_d {
    padding: 5px;
    display: flex;
    flex-basis: 100%;
    align-items: center;
    background-color: #dedede;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.card-price {
    color: #ff5000;
    font-weight: 900;
}

#search_but {
    background: #ff5000;
    color: #fff;
    padding: 7px 10px;
    border: none 0;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.but1 {
    position: relative;
    top: 11px;
    background: #ff5000;
    color: #fff;
    padding: 5px 10px;
    border: none 0;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    margin: 4px;
}
.but_buy {
    background: #ff5000;
    color: #fff;
    padding: 5px 10px;
    border: none 0;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}
body {
    display: grid;
    grid-auto-rows: min-content;
}

.card {
    width: 215px;
    display: grid;
    grid-template-rows: repeat(3, min-content);
    grid-template-columns: 33% calc(67% - 95px) 95px;
    grid-auto-rows: min-content;
}

.grid-area_a {
    grid-row: 1 / span 3;
    grid-column: 1;
}

.grid-area_b {
    grid-column: 2;
}

.grid-area_c {
    grid-row: 2;
    grid-column: 2;
}

.grid-area_d {
    grid-row: 1 / span 3;
    grid-column: 3;
}

@media only screen and (min-width: 768px) {
    .card {
        border-radius: 5px;
        display: inline-block;
        grid-template-rows: repeat(4, min-content);
        grid-template-columns: 100%;
        margin: 40px;
    }
    .grid-area {
        grid-column: 1;
    }
    .grid-area_a {
        height: 150px;
        grid-row: 1;
    }
    .grid-area_b {
        height: 69px;
        grid-row: 2;
    }
    .grid-area_c {
        grid-row: 3;
    }
    .grid-area_d {
        grid-row: 4;
    }
    .grid-area_d {
        flex-direction: row;
    }
}
/*回到顶部*/
.box{
    position:fixed;
    right:12px;
    bottom: 30px;
    height:47px;
    width: 50px;
    text-align:center;
    padding-top:20px;
    background-color: lightblue;
    border-radius: 20%;
    overflow: hidden;
}
.box:hover:before{
    top:50%
}
.box:hover .box-in{
    visibility: hidden;
}
.box:before{
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translate(-50%,-50%);
    content:'回到顶部';
    width: 40px;
    color:peru;
    font-weight:bold;

}
.box-in{
    visibility: visible;
    display:inline-block;
    height:20px;
    width: 20px;
    border: 3px solid black;
    border-color: white transparent transparent white;
    transform:rotate(45deg);
}
/*分类*/
#category{
    height: 60px;
    border: none;
    text-align: center;
    background-color: #f8f8f8;
}
/*向左*/
#left_img{
    width: 70px;
    position: relative;
    left: 540px;
    z-index: 999;
    top: 133px;
}
/*向右*/
#right_img{
    width: 77px;
    position: relative;
    left: 1180px;
    z-index: 999;
    top: 60px;
}